home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / Tk / unix / configure < prev    next >
Encoding:
Text File  |  1996-05-31  |  61.0 KB  |  2,343 lines

  1. #!/bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.1 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-x                use the X Window System"
  16.  
  17. # Initialize some variables set by options.
  18. # The variables have the same names as the options, with
  19. # dashes changed to underlines.
  20. build=NONE
  21. cache_file=./config.cache
  22. exec_prefix=NONE
  23. host=NONE
  24. no_create=
  25. nonopt=NONE
  26. no_recursion=
  27. prefix=NONE
  28. program_prefix=NONE
  29. program_suffix=NONE
  30. program_transform_name=s,x,x,
  31. silent=
  32. site=
  33. srcdir=
  34. target=NONE
  35. verbose=
  36. x_includes=NONE
  37. x_libraries=NONE
  38.  
  39. # Initialize some other variables.
  40. subdirs=
  41.  
  42. ac_prev=
  43. for ac_option
  44. do
  45.  
  46.   # If the previous option needs an argument, assign it.
  47.   if test -n "$ac_prev"; then
  48.     eval "$ac_prev=\$ac_option"
  49.     ac_prev=
  50.     continue
  51.   fi
  52.  
  53.   case "$ac_option" in
  54.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  55.   *) ac_optarg= ;;
  56.   esac
  57.  
  58.   # Accept the important Cygnus configure options, so we can diagnose typos.
  59.  
  60.   case "$ac_option" in
  61.  
  62.   -build | --build | --buil | --bui | --bu | --b)
  63.     ac_prev=build ;;
  64.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  65.     build="$ac_optarg" ;;
  66.  
  67.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  68.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  69.     ac_prev=cache_file ;;
  70.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  71.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  72.     cache_file="$ac_optarg" ;;
  73.  
  74.   -disable-* | --disable-*)
  75.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  76.     # Reject names that are not valid shell variable names.
  77.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  78.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  79.     fi
  80.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  81.     eval "enable_${ac_feature}=no" ;;
  82.  
  83.   -enable-* | --enable-*)
  84.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  85.     # Reject names that are not valid shell variable names.
  86.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  87.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  88.     fi
  89.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  90.     case "$ac_option" in
  91.       *=*) ;;
  92.       *) ac_optarg=yes ;;
  93.     esac
  94.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  95.  
  96.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  97.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  98.   | --exec | --exe | --ex)
  99.     ac_prev=exec_prefix ;;
  100.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  101.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  102.   | --exec=* | --exe=* | --ex=*)
  103.     exec_prefix="$ac_optarg" ;;
  104.  
  105.   -gas | --gas | --ga | --g)
  106.     # Obsolete; use --with-gas.
  107.     with_gas=yes ;;
  108.  
  109.   -help | --help | --hel | --he)
  110.     # Omit some internal or obsolete options to make the list less imposing.
  111.     # This message is too long to be a string in the A/UX 3.1 sh.
  112.     cat << EOF
  113. Usage: configure [options] [host]
  114. Options: [defaults in brackets after descriptions]
  115. Configuration:
  116.   --cache-file=FILE       cache test results in FILE
  117.   --help                  print this message
  118.   --no-create             do not create output files
  119.   --quiet, --silent       do not print \`checking...' messages
  120.   --version               print the version of autoconf that created configure
  121. Directory and file names:
  122.   --prefix=PREFIX         install architecture-independent files in PREFIX
  123.                           [$ac_default_prefix]
  124.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  125.                           [same as prefix]
  126.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  127.   --program-prefix=PREFIX prepend PREFIX to installed program names
  128.   --program-suffix=SUFFIX append SUFFIX to installed program names
  129.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  130. Host type:
  131.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  132.   --host=HOST             configure for HOST [guessed]
  133.   --target=TARGET         configure for TARGET [TARGET=HOST]
  134. Features and packages:
  135.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  136.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  137.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  138.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  139.   --x-includes=DIR        X include files are in DIR
  140.   --x-libraries=DIR       X library files are in DIR
  141. --enable and --with options recognized:$ac_help
  142. EOF
  143.     exit 0 ;;
  144.  
  145.   -host | --host | --hos | --ho)
  146.     ac_prev=host ;;
  147.   -host=* | --host=* | --hos=* | --ho=*)
  148.     host="$ac_optarg" ;;
  149.  
  150.   -nfp | --nfp | --nf)
  151.     # Obsolete; use --without-fp.
  152.     with_fp=no ;;
  153.  
  154.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  155.   | --no-cr | --no-c)
  156.     no_create=yes ;;
  157.  
  158.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  159.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  160.     no_recursion=yes ;;
  161.  
  162.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  163.     ac_prev=prefix ;;
  164.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  165.     prefix="$ac_optarg" ;;
  166.  
  167.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  168.   | --program-pre | --program-pr | --program-p)
  169.     ac_prev=program_prefix ;;
  170.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  171.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  172.     program_prefix="$ac_optarg" ;;
  173.  
  174.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  175.   | --program-suf | --program-su | --program-s)
  176.     ac_prev=program_suffix ;;
  177.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  178.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  179.     program_suffix="$ac_optarg" ;;
  180.  
  181.   -program-transform-name | --program-transform-name \
  182.   | --program-transform-nam | --program-transform-na \
  183.   | --program-transform-n | --program-transform- \
  184.   | --program-transform | --program-transfor \
  185.   | --program-transfo | --program-transf \
  186.   | --program-trans | --program-tran \
  187.   | --progr-tra | --program-tr | --program-t)
  188.     ac_prev=program_transform_name ;;
  189.   -program-transform-name=* | --program-transform-name=* \
  190.   | --program-transform-nam=* | --program-transform-na=* \
  191.   | --program-transform-n=* | --program-transform-=* \
  192.   | --program-transform=* | --program-transfor=* \
  193.   | --program-transfo=* | --program-transf=* \
  194.   | --program-trans=* | --program-tran=* \
  195.   | --progr-tra=* | --program-tr=* | --program-t=*)
  196.     program_transform_name="$ac_optarg" ;;
  197.  
  198.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  199.   | -silent | --silent | --silen | --sile | --sil)
  200.     silent=yes ;;
  201.  
  202.   -site | --site | --sit)
  203.     ac_prev=site ;;
  204.   -site=* | --site=* | --sit=*)
  205.     site="$ac_optarg" ;;
  206.  
  207.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  208.     ac_prev=srcdir ;;
  209.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  210.     srcdir="$ac_optarg" ;;
  211.  
  212.   -target | --target | --targe | --targ | --tar | --ta | --t)
  213.     ac_prev=target ;;
  214.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  215.     target="$ac_optarg" ;;
  216.  
  217.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  218.     verbose=yes ;;
  219.  
  220.   -version | --version | --versio | --versi | --vers)
  221.     echo "configure generated by autoconf version 2.1"
  222.     exit 0 ;;
  223.  
  224.   -with-* | --with-*)
  225.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  226.     # Reject names that are not valid shell variable names.
  227.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  228.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  229.     fi
  230.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  231.     case "$ac_option" in
  232.       *=*) ;;
  233.       *) ac_optarg=yes ;;
  234.     esac
  235.     eval "with_${ac_package}='$ac_optarg'" ;;
  236.  
  237.   -without-* | --without-*)
  238.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  239.     # Reject names that are not valid shell variable names.
  240.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  241.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  242.     fi
  243.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  244.     eval "with_${ac_package}=no" ;;
  245.  
  246.   --x)
  247.     # Obsolete; use --with-x.
  248.     with_x=yes ;;
  249.  
  250.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  251.   | --x-incl | --x-inc | --x-in | --x-i)
  252.     ac_prev=x_includes ;;
  253.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  254.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  255.     x_includes="$ac_optarg" ;;
  256.  
  257.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  258.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  259.     ac_prev=x_libraries ;;
  260.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  261.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  262.     x_libraries="$ac_optarg" ;;
  263.  
  264.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  265.     ;;
  266.  
  267.   *) 
  268.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  269.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  270.     fi
  271.     if test "x$nonopt" != xNONE; then
  272.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  273.     fi
  274.     nonopt="$ac_option"
  275.     ;;
  276.  
  277.   esac
  278. done
  279.  
  280. if test -n "$ac_prev"; then
  281.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  282. fi
  283.  
  284. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  285.  
  286. # File descriptor usage:
  287. # 0 unused; standard input
  288. # 1 file creation
  289. # 2 errors and warnings
  290. # 3 unused; some systems may open it to /dev/tty
  291. # 4 checking for... messages and results
  292. # 5 compiler messages saved in config.log
  293. if test "$silent" = yes; then
  294.   exec 4>/dev/null
  295. else
  296.   exec 4>&1
  297. fi
  298. exec 5>./config.log
  299.  
  300. echo "\
  301. This file contains any messages produced by compilers while
  302. running configure, to aid debugging if configure makes a mistake.
  303. " 1>&5
  304.  
  305. # Strip out --no-create and --no-recursion so they do not pile up.
  306. # Also quote any args containing shell metacharacters.
  307. ac_configure_args=
  308. for ac_arg
  309. do
  310.   case "$ac_arg" in
  311.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  312.   | --no-cr | --no-c) ;;
  313.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  314.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  315.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  316.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  317.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  318.   esac
  319. done
  320.  
  321. # NLS nuisances.
  322. # Only set LANG and LC_ALL to C if already set.
  323. # These must not be set unconditionally because not all systems understand
  324. # e.g. LANG=C (notably SCO).
  325. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  326. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  327.  
  328. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  329. rm -rf conftest* confdefs.h
  330. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  331. echo > confdefs.h
  332.  
  333. # A filename unique to this package, relative to the directory that
  334. # configure is in, which we can look for to find out if srcdir is correct.
  335. ac_unique_file=../generic/tk.h
  336.  
  337. # Find the source files, if location was not specified.
  338. if test -z "$srcdir"; then
  339.   ac_srcdir_defaulted=yes
  340.   # Try the directory containing this script, then its parent.
  341.   ac_prog=$0
  342.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  343.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  344.   srcdir=$ac_confdir
  345.   if test ! -r $srcdir/$ac_unique_file; then
  346.     srcdir=..
  347.   fi
  348. else
  349.   ac_srcdir_defaulted=no
  350. fi
  351. if test ! -r $srcdir/$ac_unique_file; then
  352.   if test "$ac_srcdir_defaulted" = yes; then
  353.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  354.   else
  355.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  356.   fi
  357. fi
  358. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  359.  
  360. # Prefer explicitly selected file to automatically selected ones.
  361. if test -z "$CONFIG_SITE"; then
  362.   if test "x$prefix" != xNONE; then
  363.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  364.   else
  365.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  366.   fi
  367. fi
  368. for ac_site_file in $CONFIG_SITE; do
  369.   if test -r "$ac_site_file"; then
  370.     echo "loading site script $ac_site_file"
  371.     . "$ac_site_file"
  372.   fi
  373. done
  374.  
  375. if test -r "$cache_file"; then
  376.   echo "loading cache $cache_file"
  377.   . $cache_file
  378. else
  379.   echo "creating cache $cache_file"
  380.   > $cache_file
  381. fi
  382.  
  383. ac_ext=c
  384. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  385. ac_cpp='$CPP $CPPFLAGS'
  386. ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  387. ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  388.  
  389. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  390.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  391.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  392.     ac_n= ac_c='
  393. ' ac_t='    '
  394.   else
  395.     ac_n=-n ac_c= ac_t=
  396.   fi
  397. else
  398.   ac_n= ac_c='\c' ac_t=
  399. fi
  400.  
  401.  
  402.  
  403. # @(#) configure.in 1.27 95/10/01 13:54:35
  404.  
  405. ac_aux_dir=
  406. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  407.   if test -f $ac_dir/install-sh; then
  408.     ac_aux_dir=$ac_dir
  409.     ac_install_sh="$ac_aux_dir/install-sh -c"
  410.     break
  411.   elif test -f $ac_dir/install.sh; then
  412.     ac_aux_dir=$ac_dir
  413.     ac_install_sh="$ac_aux_dir/install.sh -c"
  414.     break
  415.   fi
  416. done
  417. if test -z "$ac_aux_dir"; then
  418.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  419. fi
  420. ac_config_guess=$ac_aux_dir/config.guess
  421. ac_config_sub=$ac_aux_dir/config.sub
  422. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  423.  
  424. # Find a good install program.  We prefer a C program (faster),
  425. # so one script is as good as another.  But avoid the broken or
  426. # incompatible versions:
  427. # SysV /etc/install, /usr/sbin/install
  428. # SunOS /usr/etc/install
  429. # IRIX /sbin/install
  430. # AIX /bin/install
  431. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  432. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  433. # ./install, which can be erroneously created by make from ./install.sh.
  434. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  435. if test -z "$INSTALL"; then
  436. if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  437.   echo $ac_n "(cached) $ac_c" 1>&4
  438. else
  439.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  440.   for ac_dir in $PATH; do
  441.     case "$ac_dir" in
  442.     ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  443.     *)
  444.       # OSF1 and SCO ODT 3.0 have their own names for install.
  445.       for ac_prog in ginstall installbsd scoinst install; do
  446.         if test -f $ac_dir/$ac_prog; then
  447.       if test $ac_prog = install &&
  448.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  449.         # AIX install.  It has an incompatible calling convention.
  450.         # OSF/1 installbsd also uses dspmsg, but is usable.
  451.         :
  452.       else
  453.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  454.         break 2
  455.       fi
  456.     fi
  457.       done
  458.       ;;
  459.     esac
  460.   done
  461.   IFS="$ac_save_ifs"
  462.   # As a last resort, use the slow shell script.
  463.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  464. fi
  465.   INSTALL="$ac_cv_path_install"
  466. fi
  467. echo "$ac_t""$INSTALL" 1>&4
  468.  
  469. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  470. # It thinks the first close brace ends the variable substitution.
  471. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  472.  
  473. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  474.  
  475. # Extract the first word of "ranlib", so it can be a program name with args.
  476. set dummy ranlib; ac_word=$2
  477. echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  478. if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  479.   echo $ac_n "(cached) $ac_c" 1>&4
  480. else
  481.   if test -n "$RANLIB"; then
  482.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  483. else
  484.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  485.   for ac_dir in $PATH; do
  486.     test -z "$ac_dir" && ac_dir=.
  487.     if test -f $ac_dir/$ac_word; then
  488.       ac_cv_prog_RANLIB="ranlib"
  489.       break
  490.     fi
  491.   done
  492.   IFS="$ac_save_ifs"
  493.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  494. fi
  495. fi
  496. RANLIB="$ac_cv_prog_RANLIB"
  497. if test -n "$RANLIB"; then
  498.   echo "$ac_t""$RANLIB" 1>&4
  499. else
  500.   echo "$ac_t""no" 1>&4
  501. fi
  502.  
  503. if test "x$prefix" = xNONE; then
  504. # Extract the first word of "wish", so it can be a program name with args.
  505. set dummy wish; ac_word=$2
  506. echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  507. if eval "test \"`echo '${'ac_cv_path_WISH'+set}'`\" = set"; then
  508.   echo $ac_n "(cached) $ac_c" 1>&4
  509. else
  510.   case "$WISH" in
  511.   /*)
  512.   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
  513.   ;;
  514.   *)
  515.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  516.   for ac_dir in $PATH; do
  517.     test -z "$ac_dir" && ac_dir=.
  518.     if test -f $ac_dir/$ac_word; then
  519.       ac_cv_path_WISH="$ac_dir/$ac_word"
  520.       break
  521.     fi
  522.   done
  523.   IFS="$ac_save_ifs"
  524.   ;;
  525. esac
  526. fi
  527. WISH="$ac_cv_path_WISH"
  528. if test -n "$WISH"; then
  529.   echo "$ac_t""$WISH" 1>&4
  530. else
  531.   echo "$ac_t""no" 1>&4
  532. fi
  533.  
  534.   if test -n "$ac_cv_path_WISH"; then
  535.     prefix=`echo $ac_cv_path_WISH|sed 's%/[^/][^/]*/[^/][^/]*$%%'`
  536.   fi
  537. fi
  538.  
  539. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  540. # On Suns, sometimes $CPP names a directory.
  541. if test -n "$CPP" && test -d "$CPP"; then
  542.   CPP=
  543. fi
  544. if test -z "$CPP"; then
  545. if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  546.   echo $ac_n "(cached) $ac_c" 1>&4
  547. else
  548.     # This must be in double quotes, not single quotes, because CPP may get
  549.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  550.   CPP="${CC-cc} -E"
  551.   # On the NeXT, cc -E runs the code through the compiler's parser,
  552.   # not just through cpp.
  553.   cat > conftest.$ac_ext <<EOF
  554. #line 555 "configure"
  555. #include "confdefs.h"
  556. #include <assert.h>
  557. Syntax Error
  558. EOF
  559. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  560. ac_err=`grep -v '^ *+' conftest.out`
  561. if test -z "$ac_err"; then
  562.   :
  563. else
  564.   echo "$ac_err" >&5
  565.   rm -rf conftest*
  566.   CPP="${CC-cc} -E -traditional-cpp"
  567.   cat > conftest.$ac_ext <<EOF
  568. #line 569 "configure"
  569. #include "confdefs.h"
  570. #include <assert.h>
  571. Syntax Error
  572. EOF
  573. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  574. ac_err=`grep -v '^ *+' conftest.out`
  575. if test -z "$ac_err"; then
  576.   :
  577. else
  578.   echo "$ac_err" >&5
  579.   rm -rf conftest*
  580.   CPP=/lib/cpp
  581. fi
  582. rm -f conftest*
  583. fi
  584. rm -f conftest*
  585.   ac_cv_prog_CPP="$CPP"
  586. fi
  587. fi
  588. CPP="$ac_cv_prog_CPP"
  589. echo "$ac_t""$CPP" 1>&4
  590.  
  591. for ac_hdr in unistd.h limits.h
  592. do
  593. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  594. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  595. if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  596.   echo $ac_n "(cached) $ac_c" 1>&4
  597. else
  598.   cat > conftest.$ac_ext <<EOF
  599. #line 600 "configure"
  600. #include "confdefs.h"
  601. #include <$ac_hdr>
  602. EOF
  603. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  604. ac_err=`grep -v '^ *+' conftest.out`
  605. if test -z "$ac_err"; then
  606.   rm -rf conftest*
  607.   eval "ac_cv_header_$ac_safe=yes"
  608. else
  609.   echo "$ac_err" >&5
  610.   rm -rf conftest*
  611.   eval "ac_cv_header_$ac_safe=no"
  612. fi
  613. rm -f conftest*
  614. fi
  615. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  616.   echo "$ac_t""yes" 1>&4
  617.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  618.   cat >> confdefs.h <<EOF
  619. #define $ac_tr_hdr 1
  620. EOF
  621.  
  622. else
  623.   echo "$ac_t""no" 1>&4
  624. fi
  625. done
  626.  
  627.  
  628. #--------------------------------------------------------------------
  629. #    Include sys/select.h if it exists and if it supplies things
  630. #    that appear to be useful and aren't already in sys/types.h.
  631. #    This appears to be true only on the RS/6000 under AIX.  Some
  632. #    systems like OSF/1 have a sys/select.h that's of no use, and
  633. #    other systems like SCO UNIX have a sys/select.h that's
  634. #    pernicious.  If "fd_set" isn't defined anywhere then set a
  635. #    special flag.
  636. #--------------------------------------------------------------------
  637.  
  638. echo $ac_n "checking fd_set and sys/select""... $ac_c" 1>&4
  639. cat > conftest.$ac_ext <<EOF
  640. #line 641 "configure"
  641. #include "confdefs.h"
  642. #include <sys/types.h>
  643. int main() { return 0; }
  644. int t() {
  645. fd_set readMask, writeMask;
  646. ; return 0; }
  647. EOF
  648. if eval $ac_compile; then
  649.   rm -rf conftest*
  650.   tk_ok=yes
  651. else
  652.   rm -rf conftest*
  653.   tk_ok=no
  654. fi
  655. rm -f conftest*
  656.  
  657. if test $tk_ok = no; then
  658.     cat > conftest.$ac_ext <<EOF
  659. #line 660 "configure"
  660. #include "confdefs.h"
  661. #include <sys/select.h>
  662. EOF
  663. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  664.   egrep "fd_mask" >/dev/null 2>&1; then
  665.   rm -rf conftest*
  666.   tk_ok=yes
  667. fi
  668. rm -f conftest*
  669.  
  670.     if test $tk_ok = yes; then
  671.     cat >> confdefs.h <<\EOF
  672. #define HAVE_SYS_SELECT_H 1
  673. EOF
  674.  
  675.     fi
  676. fi
  677. echo "$ac_t""$tk_ok" 1>&4
  678. if test $tk_ok = no; then
  679.     cat >> confdefs.h <<\EOF
  680. #define NO_FD_SET 1
  681. EOF
  682.  
  683. fi
  684.  
  685. #--------------------------------------------------------------------
  686. #    Supply a substitute for stdlib.h if it doesn't define strtol,
  687. #    strtoul, or strtod (which it doesn't in some versions of SunOS).
  688. #--------------------------------------------------------------------
  689.  
  690. echo $ac_n "checking stdlib.h""... $ac_c" 1>&4
  691. cat > conftest.$ac_ext <<EOF
  692. #line 693 "configure"
  693. #include "confdefs.h"
  694. #include <stdlib.h>
  695. EOF
  696. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  697.   egrep "strtol" >/dev/null 2>&1; then
  698.   rm -rf conftest*
  699.   tk_ok=yes
  700. else
  701.   rm -rf conftest*
  702.   tk_ok=no
  703. fi
  704. rm -f conftest*
  705.  
  706. cat > conftest.$ac_ext <<EOF
  707. #line 708 "configure"
  708. #include "confdefs.h"
  709. #include <stdlib.h>
  710. EOF
  711. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  712.   egrep "strtoul" >/dev/null 2>&1; then
  713.   :
  714. else
  715.   rm -rf conftest*
  716.   tk_ok=no
  717. fi
  718. rm -f conftest*
  719.  
  720. cat > conftest.$ac_ext <<EOF
  721. #line 722 "configure"
  722. #include "confdefs.h"
  723. #include <stdlib.h>
  724. EOF
  725. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  726.   egrep "strtod" >/dev/null 2>&1; then
  727.   :
  728. else
  729.   rm -rf conftest*
  730.   tk_ok=no
  731. fi
  732. rm -f conftest*
  733.  
  734. if test $tk_ok = no; then
  735.     cat >> confdefs.h <<\EOF
  736. #define NO_STDLIB_H 1
  737. EOF
  738.  
  739. fi
  740. echo "$ac_t""$tk_ok" 1>&4
  741.  
  742. #--------------------------------------------------------------------
  743. #    Check for various typedefs and provide substitutes if
  744. #    they don't exist.
  745. #--------------------------------------------------------------------
  746.  
  747. # If we cannot run a trivial program, we must be cross compiling.
  748. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  749. if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  750.   echo $ac_n "(cached) $ac_c" 1>&4
  751. else
  752.   if test "$cross_compiling" = yes; then
  753.   ac_cv_cross=yes
  754. else
  755. cat > conftest.$ac_ext <<EOF
  756. #line 757 "configure"
  757. #include "confdefs.h"
  758. main(){return(0);}
  759. EOF
  760. eval $ac_link
  761. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  762.   ac_cv_c_cross=no
  763. else
  764.   ac_cv_c_cross=yes
  765. fi
  766. fi
  767. rm -fr conftest*
  768. fi
  769. cross_compiling=$ac_cv_c_cross
  770. echo "$ac_t""$ac_cv_c_cross" 1>&4
  771.  
  772. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  773. if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  774.   echo $ac_n "(cached) $ac_c" 1>&4
  775. else
  776.   cat > conftest.$ac_ext <<EOF
  777. #line 778 "configure"
  778. #include "confdefs.h"
  779. #include <stdlib.h>
  780. #include <stdarg.h>
  781. #include <string.h>
  782. #include <float.h>
  783. EOF
  784. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  785. ac_err=`grep -v '^ *+' conftest.out`
  786. if test -z "$ac_err"; then
  787.   rm -rf conftest*
  788.   ac_cv_header_stdc=yes
  789. else
  790.   echo "$ac_err" >&5
  791.   rm -rf conftest*
  792.   ac_cv_header_stdc=no
  793. fi
  794. rm -f conftest*
  795.  
  796. if test $ac_cv_header_stdc = yes; then
  797.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  798. cat > conftest.$ac_ext <<EOF
  799. #line 800 "configure"
  800. #include "confdefs.h"
  801. #include <string.h>
  802. EOF
  803. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  804.   egrep "memchr" >/dev/null 2>&1; then
  805.   :
  806. else
  807.   rm -rf conftest*
  808.   ac_cv_header_stdc=no
  809. fi
  810. rm -f conftest*
  811.  
  812. fi
  813.  
  814. if test $ac_cv_header_stdc = yes; then
  815.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  816. cat > conftest.$ac_ext <<EOF
  817. #line 818 "configure"
  818. #include "confdefs.h"
  819. #include <stdlib.h>
  820. EOF
  821. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  822.   egrep "free" >/dev/null 2>&1; then
  823.   :
  824. else
  825.   rm -rf conftest*
  826.   ac_cv_header_stdc=no
  827. fi
  828. rm -f conftest*
  829.  
  830. fi
  831.  
  832. if test $ac_cv_header_stdc = yes; then
  833.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  834. if test "$cross_compiling" = yes; then
  835.   ac_cv_header_stdc=no
  836. else
  837. cat > conftest.$ac_ext <<EOF
  838. #line 839 "configure"
  839. #include "confdefs.h"
  840. #include <ctype.h>
  841. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  842. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  843. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  844. int main () { int i; for (i = 0; i < 256; i++)
  845. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  846. exit (0); }
  847.  
  848. EOF
  849. eval $ac_link
  850. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  851.   :
  852. else
  853.   ac_cv_header_stdc=no
  854. fi
  855. fi
  856. rm -fr conftest*
  857. fi
  858. fi
  859. echo "$ac_t""$ac_cv_header_stdc" 1>&4
  860. if test $ac_cv_header_stdc = yes; then
  861.   cat >> confdefs.h <<\EOF
  862. #define STDC_HEADERS 1
  863. EOF
  864.  
  865. fi
  866.  
  867. echo $ac_n "checking for mode_t""... $ac_c" 1>&4
  868. if eval "test \"`echo '${'ac_cv_type_mode_t'+set}'`\" = set"; then
  869.   echo $ac_n "(cached) $ac_c" 1>&4
  870. else
  871.   cat > conftest.$ac_ext <<EOF
  872. #line 873 "configure"
  873. #include "confdefs.h"
  874. #include <sys/types.h>
  875. #if STDC_HEADERS
  876. #include <stdlib.h>
  877. #endif
  878. EOF
  879. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  880.   egrep "mode_t" >/dev/null 2>&1; then
  881.   rm -rf conftest*
  882.   ac_cv_type_mode_t=yes
  883. else
  884.   rm -rf conftest*
  885.   ac_cv_type_mode_t=no
  886. fi
  887. rm -f conftest*
  888.  
  889. fi
  890. echo "$ac_t""$ac_cv_type_mode_t" 1>&4
  891. if test $ac_cv_type_mode_t = no; then
  892.   cat >> confdefs.h <<\EOF
  893. #define mode_t int
  894. EOF
  895.  
  896. fi
  897.  
  898. echo $ac_n "checking for pid_t""... $ac_c" 1>&4
  899. if eval "test \"`echo '${'ac_cv_type_pid_t'+set}'`\" = set"; then
  900.   echo $ac_n "(cached) $ac_c" 1>&4
  901. else
  902.   cat > conftest.$ac_ext <<EOF
  903. #line 904 "configure"
  904. #include "confdefs.h"
  905. #include <sys/types.h>
  906. #if STDC_HEADERS
  907. #include <stdlib.h>
  908. #endif
  909. EOF
  910. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  911.   egrep "pid_t" >/dev/null 2>&1; then
  912.   rm -rf conftest*
  913.   ac_cv_type_pid_t=yes
  914. else
  915.   rm -rf conftest*
  916.   ac_cv_type_pid_t=no
  917. fi
  918. rm -f conftest*
  919.  
  920. fi
  921. echo "$ac_t""$ac_cv_type_pid_t" 1>&4
  922. if test $ac_cv_type_pid_t = no; then
  923.   cat >> confdefs.h <<\EOF
  924. #define pid_t int
  925. EOF
  926.  
  927. fi
  928.  
  929. echo $ac_n "checking for size_t""... $ac_c" 1>&4
  930. if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
  931.   echo $ac_n "(cached) $ac_c" 1>&4
  932. else
  933.   cat > conftest.$ac_ext <<EOF
  934. #line 935 "configure"
  935. #include "confdefs.h"
  936. #include <sys/types.h>
  937. #if STDC_HEADERS
  938. #include <stdlib.h>
  939. #endif
  940. EOF
  941. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  942.   egrep "size_t" >/dev/null 2>&1; then
  943.   rm -rf conftest*
  944.   ac_cv_type_size_t=yes
  945. else
  946.   rm -rf conftest*
  947.   ac_cv_type_size_t=no
  948. fi
  949. rm -f conftest*
  950.  
  951. fi
  952. echo "$ac_t""$ac_cv_type_size_t" 1>&4
  953. if test $ac_cv_type_size_t = no; then
  954.   cat >> confdefs.h <<\EOF
  955. #define size_t unsigned
  956. EOF
  957.  
  958. fi
  959.  
  960. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&4
  961. if eval "test \"`echo '${'ac_cv_type_uid_t'+set}'`\" = set"; then
  962.   echo $ac_n "(cached) $ac_c" 1>&4
  963. else
  964.   cat > conftest.$ac_ext <<EOF
  965. #line 966 "configure"
  966. #include "confdefs.h"
  967. #include <sys/types.h>
  968. EOF
  969. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  970.   egrep "uid_t" >/dev/null 2>&1; then
  971.   rm -rf conftest*
  972.   ac_cv_type_uid_t=yes
  973. else
  974.   rm -rf conftest*
  975.   ac_cv_type_uid_t=no
  976. fi
  977. rm -f conftest*
  978.  
  979. fi
  980. echo "$ac_t""$ac_cv_type_uid_t" 1>&4
  981. if test $ac_cv_type_uid_t = no; then
  982.   cat >> confdefs.h <<\EOF
  983. #define uid_t int
  984. EOF
  985.  
  986.   cat >> confdefs.h <<\EOF
  987. #define gid_t int
  988. EOF
  989.  
  990. fi
  991.  
  992.  
  993. #--------------------------------------------------------------------
  994. #    Locate the X11 header files and the X11 library archive.  Try
  995. #    the ac_path_x macro first, but if it doesn't find the X stuff
  996. #    (e.g. because there's no xmkmf program) then check through
  997. #    a list of possible directories.  Under some conditions the
  998. #    autoconf macro will return an include directory that contains
  999. #    no include files, so double-check its result just to be safe.
  1000. #--------------------------------------------------------------------
  1001.  
  1002. # If we find X, set shell vars x_includes and x_libraries to the
  1003. # paths, otherwise set no_x=yes.
  1004. # Uses ac_ vars as temps to allow command line to override cache and checks.
  1005. # --without-x overrides everything else, but does not touch the cache.
  1006. echo $ac_n "checking for X""... $ac_c" 1>&4
  1007.  
  1008. # Check whether --with-x or --without-x was given.
  1009. withval="$with_x"
  1010. if test -n "$withval"; then
  1011.   :
  1012. fi
  1013.  
  1014. if test "x$with_x" = xno; then
  1015.   no_x=yes
  1016. else
  1017.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  1018.     no_x=
  1019.   else
  1020. if eval "test \"`echo '${'ac_cv_path_x'+set}'`\" = set"; then
  1021.   echo $ac_n "(cached) $ac_c" 1>&4
  1022. else
  1023.   # One or both of the vars are not set, and there is no cached value.
  1024. no_x=yes
  1025. rm -fr conftestdir
  1026. if mkdir conftestdir; then
  1027.   cd conftestdir
  1028.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  1029.   cat > Imakefile <<'EOF'
  1030. acfindx:
  1031.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  1032. EOF
  1033.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  1034.     no_x=
  1035.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1036.     eval `make acfindx 2>/dev/null | grep -v make`
  1037.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  1038.     if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
  1039.     then
  1040.       ac_im_usrlibdir=$ac_im_libdir
  1041.     fi
  1042.     case "$ac_im_incroot" in
  1043.     /usr/include) ;;
  1044.     *) ac_x_includes="$ac_im_incroot" ;;
  1045.     esac
  1046.     case "$ac_im_usrlibdir" in
  1047.     /usr/lib | /lib) ;;
  1048.     *) ac_x_libraries="$ac_im_usrlibdir" ;;
  1049.     esac
  1050.   fi
  1051.   cd ..
  1052.   rm -fr conftestdir
  1053. fi
  1054.  
  1055. if test "$no_x" = yes; then
  1056. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  1057. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  1058. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  1059. cat > conftest.$ac_ext <<EOF
  1060. #line 1061 "configure"
  1061. #include "confdefs.h"
  1062. #include <$x_direct_test_include>
  1063. EOF
  1064. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1065. ac_err=`grep -v '^ *+' conftest.out`
  1066. if test -z "$ac_err"; then
  1067.   rm -rf conftest*
  1068.   no_x= ac_x_includes=
  1069. else
  1070.   echo "$ac_err" >&5
  1071.   rm -rf conftest*
  1072.     for ac_dir in               \
  1073.     /usr/X11R6/include        \
  1074.     /usr/X11R5/include        \
  1075.     /usr/X11R4/include        \
  1076.                               \
  1077.     /usr/include/X11R6        \
  1078.     /usr/include/X11R5        \
  1079.     /usr/include/X11R4        \
  1080.                               \
  1081.     /usr/local/X11R6/include  \
  1082.     /usr/local/X11R5/include  \
  1083.     /usr/local/X11R4/include  \
  1084.                               \
  1085.     /usr/local/include/X11R6  \
  1086.     /usr/local/include/X11R5  \
  1087.     /usr/local/include/X11R4  \
  1088.                               \
  1089.     /usr/X11/include          \
  1090.     /usr/include/X11          \
  1091.     /usr/local/X11/include    \
  1092.     /usr/local/include/X11    \
  1093.                               \
  1094.     /usr/X386/include         \
  1095.     /usr/x386/include         \
  1096.     /usr/XFree86/include/X11  \
  1097.                               \
  1098.     /usr/include              \
  1099.     /usr/local/include        \
  1100.     /usr/unsupported/include  \
  1101.     /usr/athena/include       \
  1102.     /usr/local/x11r5/include  \
  1103.     /usr/lpp/Xamples/include  \
  1104.                               \
  1105.     /usr/openwin/include      \
  1106.     /usr/openwin/share/include \
  1107.     ; \
  1108.   do
  1109.     if test -r "$ac_dir/$x_direct_test_include"; then
  1110.       no_x= ac_x_includes=$ac_dir
  1111.       break
  1112.     fi
  1113.   done
  1114. fi
  1115. rm -f conftest*
  1116.  
  1117. # Check for the libraries.
  1118. # See if we find them without any special options.
  1119. # Don't add to $LIBS permanently.
  1120. ac_save_LIBS="$LIBS"
  1121. LIBS="$LIBS -l$x_direct_test_library"
  1122. cat > conftest.$ac_ext <<EOF
  1123. #line 1124 "configure"
  1124. #include "confdefs.h"
  1125.  
  1126. int main() { return 0; }
  1127. int t() {
  1128. ${x_direct_test_function}()
  1129. ; return 0; }
  1130. EOF
  1131. if eval $ac_link; then
  1132.   rm -rf conftest*
  1133.   LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
  1134. else
  1135.   rm -rf conftest*
  1136.   LIBS="$ac_save_LIBS"
  1137. # First see if replacing the include by lib works.
  1138. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  1139.     /usr/X11R6/lib        \
  1140.     /usr/X11R5/lib        \
  1141.     /usr/X11R4/lib        \
  1142.                           \
  1143.     /usr/lib/X11R6        \
  1144.     /usr/lib/X11R5        \
  1145.     /usr/lib/X11R4        \
  1146.                           \
  1147.     /usr/local/X11R6/lib  \
  1148.     /usr/local/X11R5/lib  \
  1149.     /usr/local/X11R4/lib  \
  1150.                           \
  1151.     /usr/local/lib/X11R6  \
  1152.     /usr/local/lib/X11R5  \
  1153.     /usr/local/lib/X11R4  \
  1154.                           \
  1155.     /usr/X11/lib          \
  1156.     /usr/lib/X11          \
  1157.     /usr/local/X11/lib    \
  1158.     /usr/local/lib/X11    \
  1159.                           \
  1160.     /usr/X386/lib         \
  1161.     /usr/x386/lib         \
  1162.     /usr/XFree86/lib/X11  \
  1163.                           \
  1164.     /usr/lib              \
  1165.     /usr/local/lib        \
  1166.     /usr/unsupported/lib  \
  1167.     /usr/athena/lib       \
  1168.     /usr/local/x11r5/lib  \
  1169.     /usr/lpp/Xamples/lib  \
  1170.                           \
  1171.     /usr/openwin/lib      \
  1172.     /usr/openwin/share/lib \
  1173.     ; \
  1174. do
  1175.   for ac_extension in a so sl; do
  1176.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  1177.       no_x= ac_x_libraries=$ac_dir
  1178.       break 2
  1179.     fi
  1180.   done
  1181. done
  1182. fi
  1183. rm -f conftest*
  1184.  
  1185. fi
  1186. if test "$no_x" = yes; then
  1187.   ac_cv_path_x="no_x=yes"
  1188. else
  1189.   ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  1190. fi
  1191. fi
  1192.   fi
  1193.   eval "$ac_cv_path_x"
  1194. fi # $with_x != no
  1195.  
  1196. if test "$no_x" = yes; then
  1197.   echo "$ac_t""no" 1>&4
  1198. else
  1199.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  1200.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  1201.   ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  1202.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&4
  1203. fi
  1204.  
  1205. not_really_there=""
  1206. if test "$no_x" = ""; then
  1207.     if test "$x_includes" = ""; then
  1208.     cat > conftest.$ac_ext <<EOF
  1209. #line 1210 "configure"
  1210. #include "confdefs.h"
  1211. #include <X11/XIntrinsic.h>
  1212. EOF
  1213. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1214. ac_err=`grep -v '^ *+' conftest.out`
  1215. if test -z "$ac_err"; then
  1216.   :
  1217. else
  1218.   echo "$ac_err" >&5
  1219.   rm -rf conftest*
  1220.   not_really_there="yes"
  1221. fi
  1222. rm -f conftest*
  1223.     else
  1224.     if test ! -r $x_includes/X11/Intrinsic.h; then
  1225.         not_really_there="yes"
  1226.     fi
  1227.     fi
  1228. fi
  1229. if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
  1230.     echo checking for X11 header files
  1231.     XINCLUDES="# no special path needed"
  1232.     cat > conftest.$ac_ext <<EOF
  1233. #line 1234 "configure"
  1234. #include "confdefs.h"
  1235. #include <X11/Intrinsic.h>
  1236. EOF
  1237. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1238. ac_err=`grep -v '^ *+' conftest.out`
  1239. if test -z "$ac_err"; then
  1240.   :
  1241. else
  1242.   echo "$ac_err" >&5
  1243.   rm -rf conftest*
  1244.   XINCLUDES="nope"
  1245. fi
  1246. rm -f conftest*
  1247.     if test "$XINCLUDES" = nope; then
  1248.         dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/include/X11R4 /usr/X11R5/include /usr/include/X11R5 /usr/openwin/include /usr/X11/include /usr/sww/include"
  1249.         for i in $dirs ; do
  1250.         if test -r $i/X11/Intrinsic.h; then
  1251.             XINCLUDES=" -I$i"
  1252.         fi
  1253.         done
  1254.     fi
  1255. else
  1256.     if test "$x_includes" != ""; then
  1257.     XINCLUDES=-I$x_includes
  1258.     else
  1259.     XINCLUDES="# no special path needed"
  1260.     fi
  1261. fi
  1262. if test "$XINCLUDES" = nope; then
  1263.   echo "Warning:  couldn't find any X11 include files."
  1264.   XINCLUDES="# no include files found"
  1265. fi
  1266.  
  1267.  
  1268. if test "$no_x" = yes; then
  1269.     XLIBSW=nope
  1270.     if test "$XLIBSW" = nope; then
  1271.     dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/lib/X11R4 /usr/X11R5/lib /usr/lib/X11R5 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
  1272.     for i in $dirs ; do
  1273.         if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl; then
  1274.         XLIBSW="-L$i -lX11"
  1275.         fi
  1276.     done
  1277.     fi
  1278. else
  1279.     if test "$x_libraries" = ""; then
  1280.     XLIBSW=-lX11
  1281.     else
  1282.     XLIBSW="-L$x_libraries -lX11"
  1283.     fi
  1284. fi
  1285. if test "$XLIBSW" = nope ; then
  1286.     echo $ac_n "checking for -lXwindow""... $ac_c" 1>&4
  1287. if eval "test \"`echo '${'ac_cv_lib_Xwindow'+set}'`\" = set"; then
  1288.   echo $ac_n "(cached) $ac_c" 1>&4
  1289. else
  1290.   ac_save_LIBS="$LIBS"
  1291. LIBS="$LIBS -lXwindow "
  1292. cat > conftest.$ac_ext <<EOF
  1293. #line 1294 "configure"
  1294. #include "confdefs.h"
  1295.  
  1296. int main() { return 0; }
  1297. int t() {
  1298. XCreateWindow()
  1299. ; return 0; }
  1300. EOF
  1301. if eval $ac_link; then
  1302.   rm -rf conftest*
  1303.   eval "ac_cv_lib_Xwindow=yes"
  1304. else
  1305.   rm -rf conftest*
  1306.   eval "ac_cv_lib_Xwindow=no"
  1307. fi
  1308. rm -f conftest*
  1309. LIBS="$ac_save_LIBS"
  1310.  
  1311. fi
  1312. if eval "test \"`echo '$ac_cv_lib_'Xwindow`\" = yes"; then
  1313.   echo "$ac_t""yes" 1>&4
  1314.   XLIBSW=-lXwindow
  1315. else
  1316.   echo "$ac_t""no" 1>&4
  1317. fi
  1318.  
  1319. fi
  1320. if test "$XLIBSW" = nope ; then
  1321.     echo "Warning:  couldn't find the X11 library archive.  Using -lX11."
  1322.     XLIBSW=-lX11
  1323. fi
  1324.  
  1325.  
  1326. #--------------------------------------------------------------------
  1327. #    Check for the existence of various libraries.  The order here
  1328. #    is important, so that then end up in the right order in the
  1329. #    command line generated by make.  The -lsocket and -lnsl libraries
  1330. #    require a couple of special tricks:
  1331. #    1. Use "connect" and "accept" to check for -lsocket, and
  1332. #       "gethostbyname" to check for -lnsl.
  1333. #    2. Use each function name only once:  can't redo a check because
  1334. #       autoconf caches the results of the last check and won't redo it.
  1335. #    3. Use -lnsl and -lsocket only if they supply procedures that
  1336. #       aren't already present in the normal libraries.  This is because
  1337. #       IRIX 5.2 has libraries, but they aren't needed and they're
  1338. #       bogus:  they goof up name resolution if used.
  1339. #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
  1340. #       To get around this problem, check for both libraries together
  1341. #       if -lsocket doesn't work by itself.
  1342. #--------------------------------------------------------------------
  1343.  
  1344. echo $ac_n "checking for -lXbsd""... $ac_c" 1>&4
  1345. if eval "test \"`echo '${'ac_cv_lib_Xbsd'+set}'`\" = set"; then
  1346.   echo $ac_n "(cached) $ac_c" 1>&4
  1347. else
  1348.   ac_save_LIBS="$LIBS"
  1349. LIBS="$LIBS -lXbsd "
  1350. cat > conftest.$ac_ext <<EOF
  1351. #line 1352 "configure"
  1352. #include "confdefs.h"
  1353.  
  1354. int main() { return 0; }
  1355. int t() {
  1356. main()
  1357. ; return 0; }
  1358. EOF
  1359. if eval $ac_link; then
  1360.   rm -rf conftest*
  1361.   eval "ac_cv_lib_Xbsd=yes"
  1362. else
  1363.   rm -rf conftest*
  1364.   eval "ac_cv_lib_Xbsd=no"
  1365. fi
  1366. rm -f conftest*
  1367. LIBS="$ac_save_LIBS"
  1368.  
  1369. fi
  1370. if eval "test \"`echo '$ac_cv_lib_'Xbsd`\" = yes"; then
  1371.   echo "$ac_t""yes" 1>&4
  1372.   LIBS="$LIBS -lXbsd"
  1373. else
  1374.   echo "$ac_t""no" 1>&4
  1375. fi
  1376.  
  1377.  
  1378. tk_checkBoth=0
  1379. echo $ac_n "checking for connect""... $ac_c" 1>&4
  1380. if eval "test \"`echo '${'ac_cv_func_connect'+set}'`\" = set"; then
  1381.   echo $ac_n "(cached) $ac_c" 1>&4
  1382. else
  1383.   cat > conftest.$ac_ext <<EOF
  1384. #line 1385 "configure"
  1385. #include "confdefs.h"
  1386. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1387. /* Override any gcc2 internal prototype to avoid an error.  */
  1388. char connect(); 
  1389.  
  1390. int main() { return 0; }
  1391. int t() {
  1392.  
  1393. /* The GNU C library defines this for functions which it implements
  1394.     to always fail with ENOSYS.  Some functions are actually named
  1395.     something starting with __ and the normal name is an alias.  */
  1396. #if defined (__stub_connect) || defined (__stub___connect)
  1397. choke me
  1398. #else
  1399. connect();
  1400. #endif
  1401.  
  1402. ; return 0; }
  1403. EOF
  1404. if eval $ac_link; then
  1405.   rm -rf conftest*
  1406.   eval "ac_cv_func_connect=yes"
  1407. else
  1408.   rm -rf conftest*
  1409.   eval "ac_cv_func_connect=no"
  1410. fi
  1411. rm -f conftest*
  1412.  
  1413. fi
  1414. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  1415.   echo "$ac_t""yes" 1>&4
  1416.   tk_checkSocket=0
  1417. else
  1418.   echo "$ac_t""no" 1>&4
  1419. tk_checkSocket=1
  1420. fi
  1421.  
  1422. if test "$tk_checkSocket" = 1; then
  1423.     echo $ac_n "checking for -lsocket""... $ac_c" 1>&4
  1424. if eval "test \"`echo '${'ac_cv_lib_socket'+set}'`\" = set"; then
  1425.   echo $ac_n "(cached) $ac_c" 1>&4
  1426. else
  1427.   ac_save_LIBS="$LIBS"
  1428. LIBS="$LIBS -lsocket "
  1429. cat > conftest.$ac_ext <<EOF
  1430. #line 1431 "configure"
  1431. #include "confdefs.h"
  1432.  
  1433. int main() { return 0; }
  1434. int t() {
  1435. main()
  1436. ; return 0; }
  1437. EOF
  1438. if eval $ac_link; then
  1439.   rm -rf conftest*
  1440.   eval "ac_cv_lib_socket=yes"
  1441. else
  1442.   rm -rf conftest*
  1443.   eval "ac_cv_lib_socket=no"
  1444. fi
  1445. rm -f conftest*
  1446. LIBS="$ac_save_LIBS"
  1447.  
  1448. fi
  1449. if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
  1450.   echo "$ac_t""yes" 1>&4
  1451.   LIBS="$LIBS -lsocket"
  1452. else
  1453.   echo "$ac_t""no" 1>&4
  1454. tk_checkBoth=1
  1455. fi
  1456.  
  1457. fi
  1458. if test "$tk_checkBoth" = 1; then
  1459.     tk_oldLibs=$LIBS
  1460.     LIBS="$LIBS -lsocket -lnsl"
  1461.     echo $ac_n "checking for accept""... $ac_c" 1>&4
  1462. if eval "test \"`echo '${'ac_cv_func_accept'+set}'`\" = set"; then
  1463.   echo $ac_n "(cached) $ac_c" 1>&4
  1464. else
  1465.   cat > conftest.$ac_ext <<EOF
  1466. #line 1467 "configure"
  1467. #include "confdefs.h"
  1468. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1469. /* Override any gcc2 internal prototype to avoid an error.  */
  1470. char accept(); 
  1471.  
  1472. int main() { return 0; }
  1473. int t() {
  1474.  
  1475. /* The GNU C library defines this for functions which it implements
  1476.     to always fail with ENOSYS.  Some functions are actually named
  1477.     something starting with __ and the normal name is an alias.  */
  1478. #if defined (__stub_accept) || defined (__stub___accept)
  1479. choke me
  1480. #else
  1481. accept();
  1482. #endif
  1483.  
  1484. ; return 0; }
  1485. EOF
  1486. if eval $ac_link; then
  1487.   rm -rf conftest*
  1488.   eval "ac_cv_func_accept=yes"
  1489. else
  1490.   rm -rf conftest*
  1491.   eval "ac_cv_func_accept=no"
  1492. fi
  1493. rm -f conftest*
  1494.  
  1495. fi
  1496. if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
  1497.   echo "$ac_t""yes" 1>&4
  1498.   tk_checkNsl=0
  1499. else
  1500.   echo "$ac_t""no" 1>&4
  1501. LIBS=$tk_oldLibs
  1502. fi
  1503.  
  1504. fi
  1505. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&4
  1506. if eval "test \"`echo '${'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  1507.   echo $ac_n "(cached) $ac_c" 1>&4
  1508. else
  1509.   cat > conftest.$ac_ext <<EOF
  1510. #line 1511 "configure"
  1511. #include "confdefs.h"
  1512. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1513. /* Override any gcc2 internal prototype to avoid an error.  */
  1514. char gethostbyname(); 
  1515.  
  1516. int main() { return 0; }
  1517. int t() {
  1518.  
  1519. /* The GNU C library defines this for functions which it implements
  1520.     to always fail with ENOSYS.  Some functions are actually named
  1521.     something starting with __ and the normal name is an alias.  */
  1522. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  1523. choke me
  1524. #else
  1525. gethostbyname();
  1526. #endif
  1527.  
  1528. ; return 0; }
  1529. EOF
  1530. if eval $ac_link; then
  1531.   rm -rf conftest*
  1532.   eval "ac_cv_func_gethostbyname=yes"
  1533. else
  1534.   rm -rf conftest*
  1535.   eval "ac_cv_func_gethostbyname=no"
  1536. fi
  1537. rm -f conftest*
  1538.  
  1539. fi
  1540. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  1541.   echo "$ac_t""yes" 1>&4
  1542.   :
  1543. else
  1544.   echo "$ac_t""no" 1>&4
  1545. echo $ac_n "checking for -lnsl""... $ac_c" 1>&4
  1546. if eval "test \"`echo '${'ac_cv_lib_nsl'+set}'`\" = set"; then
  1547.   echo $ac_n "(cached) $ac_c" 1>&4
  1548. else
  1549.   ac_save_LIBS="$LIBS"
  1550. LIBS="$LIBS -lnsl "
  1551. cat > conftest.$ac_ext <<EOF
  1552. #line 1553 "configure"
  1553. #include "confdefs.h"
  1554.  
  1555. int main() { return 0; }
  1556. int t() {
  1557. main()
  1558. ; return 0; }
  1559. EOF
  1560. if eval $ac_link; then
  1561.   rm -rf conftest*
  1562.   eval "ac_cv_lib_nsl=yes"
  1563. else
  1564.   rm -rf conftest*
  1565.   eval "ac_cv_lib_nsl=no"
  1566. fi
  1567. rm -f conftest*
  1568. LIBS="$ac_save_LIBS"
  1569.  
  1570. fi
  1571. if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
  1572.   echo "$ac_t""yes" 1>&4
  1573.   LIBS="$LIBS -lnsl"
  1574. else
  1575.   echo "$ac_t""no" 1>&4
  1576. fi
  1577.  
  1578. fi
  1579.  
  1580.  
  1581. #--------------------------------------------------------------------
  1582. # One more check related to the X libraries.  The standard releases
  1583. # of Ultrix don't support the "xauth" mechanism, so send won't work
  1584. # unless TK_NO_SECURITY is defined.  However, there are usually copies
  1585. # of the MIT X server available as well, which do support xauth.
  1586. # Check for the MIT stuff and use it if it exists.
  1587. #
  1588. # Note: can't use ac_check_lib macro (at least, not in Autoconf 2.1)
  1589. # because it can't deal with the "-" in the library name.
  1590. #--------------------------------------------------------------------
  1591.  
  1592. if test -d /usr/include/mit ; then
  1593.     echo $ac_n "checking MIT X libraries""... $ac_c" 1>&4
  1594.     tk_oldCFlags=$CFLAGS
  1595.     CFLAGS="$CFLAGS -I/usr/include/mit"
  1596.     tk_oldLibs=$LIBS
  1597.     LIBS="$LIBS -lX11-mit"
  1598.     cat > conftest.$ac_ext <<EOF
  1599. #line 1600 "configure"
  1600. #include "confdefs.h"
  1601.  
  1602.     #include <X11/Xlib.h>
  1603.     
  1604. int main() { return 0; }
  1605. int t() {
  1606.  
  1607.     XOpenDisplay(0);
  1608.     
  1609. ; return 0; }
  1610. EOF
  1611. if eval $ac_link; then
  1612.   rm -rf conftest*
  1613.   
  1614.     echo "$ac_t""yes" 1>&4
  1615.     XLIBSW="-lX11-mit"
  1616.     XINCLUDES="-I/usr/include/mit"
  1617.     
  1618. else
  1619.   rm -rf conftest*
  1620.   echo "$ac_t""no" 1>&4
  1621. fi
  1622. rm -f conftest*
  1623.  
  1624.     CFLAGS=$tk_oldCFlags
  1625.     LIBS=$tk_oldLibs
  1626. fi
  1627.  
  1628. #--------------------------------------------------------------------
  1629. #    Figure out how to find out whether a FILE structure contains
  1630. #    buffered readable data.  Some known names for the count field:
  1631. #        _cnt:        Most UNIX systems
  1632. #        __cnt:        HPUX
  1633. #        _r:        BSD
  1634. #        readCount:    Sprite
  1635. #    Or, in GNU libc there are two fields, _gptr and _egptr, which
  1636. #    have to be compared.
  1637. #--------------------------------------------------------------------
  1638.  
  1639. echo $ac_n "checking count field in FILE structures""... $ac_c" 1>&4
  1640. cat > conftest.$ac_ext <<EOF
  1641. #line 1642 "configure"
  1642. #include "confdefs.h"
  1643. #include <stdio.h>
  1644. int main() { return 0; }
  1645. int t() {
  1646. FILE *f = stdin; f->_cnt = 0;
  1647. ; return 0; }
  1648. EOF
  1649. if eval $ac_compile; then
  1650.   rm -rf conftest*
  1651.   fcnt="_cnt"
  1652. fi
  1653. rm -f conftest*
  1654.  
  1655. if test "$fcnt" = ""; then
  1656.     cat > conftest.$ac_ext <<EOF
  1657. #line 1658 "configure"
  1658. #include "confdefs.h"
  1659. #include <stdio.h>
  1660. int main() { return 0; }
  1661. int t() {
  1662. FILE *f = stdin; f->__cnt = 0;
  1663. ; return 0; }
  1664. EOF
  1665. if eval $ac_compile; then
  1666.   rm -rf conftest*
  1667.   fcnt="__cnt"
  1668. fi
  1669. rm -f conftest*
  1670.  
  1671. fi
  1672. if test "$fcnt" = ""; then
  1673.     cat > conftest.$ac_ext <<EOF
  1674. #line 1675 "configure"
  1675. #include "confdefs.h"
  1676. #include <stdio.h>
  1677. int main() { return 0; }
  1678. int t() {
  1679. FILE *f = stdin; f->_r = 0;
  1680. ; return 0; }
  1681. EOF
  1682. if eval $ac_compile; then
  1683.   rm -rf conftest*
  1684.   fcnt="_r"
  1685. fi
  1686. rm -f conftest*
  1687.  
  1688. fi
  1689. if test "$fcnt" = ""; then
  1690.     cat > conftest.$ac_ext <<EOF
  1691. #line 1692 "configure"
  1692. #include "confdefs.h"
  1693. #include <stdio.h>
  1694. int main() { return 0; }
  1695. int t() {
  1696. FILE *f = stdin; f->readCount = 0;
  1697. ; return 0; }
  1698. EOF
  1699. if eval $ac_compile; then
  1700.   rm -rf conftest*
  1701.   fcnt="readCount"
  1702. fi
  1703. rm -f conftest*
  1704.  
  1705. fi
  1706. if test "$fcnt" != ""; then
  1707.     cat >> confdefs.h <<EOF
  1708. #define TK_FILE_COUNT $fcnt
  1709. EOF
  1710.  
  1711. fi
  1712. if test "$fcnt" = ""; then
  1713.     cat > conftest.$ac_ext <<EOF
  1714. #line 1715 "configure"
  1715. #include "confdefs.h"
  1716. #include <stdio.h>
  1717. int main() { return 0; }
  1718. int t() {
  1719. FILE *f = stdin; f->_gptr = f->_egptr;
  1720. ; return 0; }
  1721. EOF
  1722. if eval $ac_compile; then
  1723.   rm -rf conftest*
  1724.   tk_ok=yes
  1725. else
  1726.   rm -rf conftest*
  1727.   tk_ok=no
  1728. fi
  1729. rm -f conftest*
  1730.  
  1731.     if test $tk_ok = yes; then
  1732.     cat >> confdefs.h <<\EOF
  1733. #define TK_FILE_GPTR 1
  1734. EOF
  1735.  
  1736.     fcnt="_gptr/_egptr"
  1737.     fi
  1738. fi
  1739. if test "$fcnt" = ""; then
  1740.     cat > conftest.$ac_ext <<EOF
  1741. #line 1742 "configure"
  1742. #include "confdefs.h"
  1743. #include <stdio.h>
  1744. int main() { return 0; }
  1745. int t() {
  1746. FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
  1747. ; return 0; }
  1748. EOF
  1749. if eval $ac_compile; then
  1750.   rm -rf conftest*
  1751.   tk_ok=yes
  1752. else
  1753.   rm -rf conftest*
  1754.   tk_ok=no
  1755. fi
  1756. rm -f conftest*
  1757.  
  1758.     if test $tk_ok = yes; then
  1759.     cat >> confdefs.h <<\EOF
  1760. #define TK_FILE_READ_PTR 1
  1761. EOF
  1762.  
  1763.     fcnt="_IO_read_ptr/_IO_read_end"
  1764.     fi
  1765. fi
  1766. if test "$fcnt" = ""; then
  1767.     echo "$ac_t""not found; must supply TkReadDataPending procedure" 1>&4
  1768. else
  1769.     echo "$ac_t"""$fcnt"" 1>&4
  1770. fi
  1771.  
  1772. #--------------------------------------------------------------------
  1773. #    On a few very rare systems, all of the libm.a stuff is
  1774. #    already in libc.a.  Set compiler flags accordingly.
  1775. #    Also, Linux requires the "ieee" library for math to
  1776. #    work right (and it must appear before "-lm").
  1777. #--------------------------------------------------------------------
  1778.  
  1779. MATH_LIBS=""
  1780. echo $ac_n "checking for sin""... $ac_c" 1>&4
  1781. if eval "test \"`echo '${'ac_cv_func_sin'+set}'`\" = set"; then
  1782.   echo $ac_n "(cached) $ac_c" 1>&4
  1783. else
  1784.   cat > conftest.$ac_ext <<EOF
  1785. #line 1786 "configure"
  1786. #include "confdefs.h"
  1787. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1788. /* Override any gcc2 internal prototype to avoid an error.  */
  1789. char sin(); 
  1790.  
  1791. int main() { return 0; }
  1792. int t() {
  1793.  
  1794. /* The GNU C library defines this for functions which it implements
  1795.     to always fail with ENOSYS.  Some functions are actually named
  1796.     something starting with __ and the normal name is an alias.  */
  1797. #if defined (__stub_sin) || defined (__stub___sin)
  1798. choke me
  1799. #else
  1800. sin();
  1801. #endif
  1802.  
  1803. ; return 0; }
  1804. EOF
  1805. if eval $ac_link; then
  1806.   rm -rf conftest*
  1807.   eval "ac_cv_func_sin=yes"
  1808. else
  1809.   rm -rf conftest*
  1810.   eval "ac_cv_func_sin=no"
  1811. fi
  1812. rm -f conftest*
  1813.  
  1814. fi
  1815. if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
  1816.   echo "$ac_t""yes" 1>&4
  1817.   :
  1818. else
  1819.   echo "$ac_t""no" 1>&4
  1820. MATH_LIBS="-lm"
  1821. fi
  1822.  
  1823. echo $ac_n "checking for -lieee""... $ac_c" 1>&4
  1824. if eval "test \"`echo '${'ac_cv_lib_ieee'+set}'`\" = set"; then
  1825.   echo $ac_n "(cached) $ac_c" 1>&4
  1826. else
  1827.   ac_save_LIBS="$LIBS"
  1828. LIBS="$LIBS -lieee "
  1829. cat > conftest.$ac_ext <<EOF
  1830. #line 1831 "configure"
  1831. #include "confdefs.h"
  1832.  
  1833. int main() { return 0; }
  1834. int t() {
  1835. main()
  1836. ; return 0; }
  1837. EOF
  1838. if eval $ac_link; then
  1839.   rm -rf conftest*
  1840.   eval "ac_cv_lib_ieee=yes"
  1841. else
  1842.   rm -rf conftest*
  1843.   eval "ac_cv_lib_ieee=no"
  1844. fi
  1845. rm -f conftest*
  1846. LIBS="$ac_save_LIBS"
  1847.  
  1848. fi
  1849. if eval "test \"`echo '$ac_cv_lib_'ieee`\" = yes"; then
  1850.   echo "$ac_t""yes" 1>&4
  1851.   MATH_LIBS="-lieee $MATH_LIBS"
  1852. else
  1853.   echo "$ac_t""no" 1>&4
  1854. fi
  1855.  
  1856.  
  1857.  
  1858. #--------------------------------------------------------------------
  1859. #    If this system doesn't have a memmove procedure, use memcpy
  1860. #    instead.
  1861. #--------------------------------------------------------------------
  1862.  
  1863. echo $ac_n "checking for memmove""... $ac_c" 1>&4
  1864. if eval "test \"`echo '${'ac_cv_func_memmove'+set}'`\" = set"; then
  1865.   echo $ac_n "(cached) $ac_c" 1>&4
  1866. else
  1867.   cat > conftest.$ac_ext <<EOF
  1868. #line 1869 "configure"
  1869. #include "confdefs.h"
  1870. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1871. /* Override any gcc2 internal prototype to avoid an error.  */
  1872. char memmove(); 
  1873.  
  1874. int main() { return 0; }
  1875. int t() {
  1876.  
  1877. /* The GNU C library defines this for functions which it implements
  1878.     to always fail with ENOSYS.  Some functions are actually named
  1879.     something starting with __ and the normal name is an alias.  */
  1880. #if defined (__stub_memmove) || defined (__stub___memmove)
  1881. choke me
  1882. #else
  1883. memmove();
  1884. #endif
  1885.  
  1886. ; return 0; }
  1887. EOF
  1888. if eval $ac_link; then
  1889.   rm -rf conftest*
  1890.   eval "ac_cv_func_memmove=yes"
  1891. else
  1892.   rm -rf conftest*
  1893.   eval "ac_cv_func_memmove=no"
  1894. fi
  1895. rm -f conftest*
  1896.  
  1897. fi
  1898. if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
  1899.   echo "$ac_t""yes" 1>&4
  1900.   :
  1901. else
  1902.   echo "$ac_t""no" 1>&4
  1903. cat >> confdefs.h <<\EOF
  1904. #define memmove memcpy
  1905. EOF
  1906.  
  1907. fi
  1908.  
  1909.  
  1910. #--------------------------------------------------------------------
  1911. #    Figure out whether "char" is unsigned.  If so, set a
  1912. #    #define for __CHAR_UNSIGNED__.
  1913. #--------------------------------------------------------------------
  1914.  
  1915. echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&4
  1916. if eval "test \"`echo '${'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  1917.   echo $ac_n "(cached) $ac_c" 1>&4
  1918. else
  1919.   if test "$GCC" = yes; then
  1920.   # GCC predefines this symbol on systems where it applies.
  1921. cat > conftest.$ac_ext <<EOF
  1922. #line 1923 "configure"
  1923. #include "confdefs.h"
  1924. #ifdef __CHAR_UNSIGNED__
  1925.   yes
  1926. #endif
  1927.  
  1928. EOF
  1929. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1930.   egrep "yes" >/dev/null 2>&1; then
  1931.   rm -rf conftest*
  1932.   ac_cv_c_char_unsigned=yes
  1933. else
  1934.   rm -rf conftest*
  1935.   ac_cv_c_char_unsigned=no
  1936. fi
  1937. rm -f conftest*
  1938.  
  1939. else
  1940. if test "$cross_compiling" = yes; then
  1941.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1942. else
  1943. cat > conftest.$ac_ext <<EOF
  1944. #line 1945 "configure"
  1945. #include "confdefs.h"
  1946. /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1947. #if !defined(__STDC__) || __STDC__ != 1
  1948. #define volatile
  1949. #endif
  1950. main() {
  1951.   volatile char c = 255; exit(c < 0);
  1952. }
  1953. EOF
  1954. eval $ac_link
  1955. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1956.   ac_cv_c_char_unsigned=yes
  1957. else
  1958.   ac_cv_c_char_unsigned=no
  1959. fi
  1960. fi
  1961. rm -fr conftest*
  1962. fi
  1963. fi
  1964. echo "$ac_t""$ac_cv_c_char_unsigned" 1>&4
  1965. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  1966.   cat >> confdefs.h <<\EOF
  1967. #define __CHAR_UNSIGNED__ 1
  1968. EOF
  1969.  
  1970. fi
  1971.  
  1972.  
  1973. #--------------------------------------------------------------------
  1974. #    SGI systems don't use the BSD form of the gettimeofday function,
  1975. #    but they have a BSDgettimeofday function that can be used instead.
  1976. #
  1977. #    Also, check for the existence of a gettimeofday declaration,
  1978. #    to tkPort.h can declare it if it isn't already declared.
  1979. #--------------------------------------------------------------------
  1980.  
  1981. echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&4
  1982. if eval "test \"`echo '${'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
  1983.   echo $ac_n "(cached) $ac_c" 1>&4
  1984. else
  1985.   cat > conftest.$ac_ext <<EOF
  1986. #line 1987 "configure"
  1987. #include "confdefs.h"
  1988. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1989. /* Override any gcc2 internal prototype to avoid an error.  */
  1990. char BSDgettimeofday(); 
  1991.  
  1992. int main() { return 0; }
  1993. int t() {
  1994.  
  1995. /* The GNU C library defines this for functions which it implements
  1996.     to always fail with ENOSYS.  Some functions are actually named
  1997.     something starting with __ and the normal name is an alias.  */
  1998. #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
  1999. choke me
  2000. #else
  2001. BSDgettimeofday();
  2002. #endif
  2003.  
  2004. ; return 0; }
  2005. EOF
  2006. if eval $ac_link; then
  2007.   rm -rf conftest*
  2008.   eval "ac_cv_func_BSDgettimeofday=yes"
  2009. else
  2010.   rm -rf conftest*
  2011.   eval "ac_cv_func_BSDgettimeofday=no"
  2012. fi
  2013. rm -f conftest*
  2014.  
  2015. fi
  2016. if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then
  2017.   echo "$ac_t""yes" 1>&4
  2018.   cat >> confdefs.h <<\EOF
  2019. #define HAVE_BSDGETTIMEOFDAY 1
  2020. EOF
  2021.  
  2022. else
  2023.   echo "$ac_t""no" 1>&4
  2024. fi
  2025.  
  2026. echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&4
  2027. cat > conftest.$ac_ext <<EOF
  2028. #line 2029 "configure"
  2029. #include "confdefs.h"
  2030. #include <sys/time.h>
  2031. EOF
  2032. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2033.   egrep "gettimeofday" >/dev/null 2>&1; then
  2034.   rm -rf conftest*
  2035.   echo "$ac_t""present" 1>&4
  2036. else
  2037.   rm -rf conftest*
  2038.   
  2039.     echo "$ac_t""missing" 1>&4
  2040.     cat >> confdefs.h <<\EOF
  2041. #define GETTOD_NOT_DECLARED 1
  2042. EOF
  2043.  
  2044.  
  2045. fi
  2046. rm -f conftest*
  2047.  
  2048.  
  2049. #--------------------------------------------------------------------
  2050. #    Under Solaris 2.4, strtod returns the wrong value for the
  2051. #    terminating character under some conditions.  Check for this
  2052. #    and if the problem exists use a substitute procedure
  2053. #    "fixstrtod" (provided by Tcl) that corrects the error.
  2054. #--------------------------------------------------------------------
  2055.  
  2056. echo $ac_n "checking for strtod""... $ac_c" 1>&4
  2057. if eval "test \"`echo '${'ac_cv_func_strtod'+set}'`\" = set"; then
  2058.   echo $ac_n "(cached) $ac_c" 1>&4
  2059. else
  2060.   cat > conftest.$ac_ext <<EOF
  2061. #line 2062 "configure"
  2062. #include "confdefs.h"
  2063. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  2064. /* Override any gcc2 internal prototype to avoid an error.  */
  2065. char strtod(); 
  2066.  
  2067. int main() { return 0; }
  2068. int t() {
  2069.  
  2070. /* The GNU C library defines this for functions which it implements
  2071.     to always fail with ENOSYS.  Some functions are actually named
  2072.     something starting with __ and the normal name is an alias.  */
  2073. #if defined (__stub_strtod) || defined (__stub___strtod)
  2074. choke me
  2075. #else
  2076. strtod();
  2077. #endif
  2078.  
  2079. ; return 0; }
  2080. EOF
  2081. if eval $ac_link; then
  2082.   rm -rf conftest*
  2083.   eval "ac_cv_func_strtod=yes"
  2084. else
  2085.   rm -rf conftest*
  2086.   eval "ac_cv_func_strtod=no"
  2087. fi
  2088. rm -f conftest*
  2089.  
  2090. fi
  2091. if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
  2092.   echo "$ac_t""yes" 1>&4
  2093.   tk_strtod=1
  2094. else
  2095.   echo "$ac_t""no" 1>&4
  2096. tk_strtod=0
  2097. fi
  2098.  
  2099. if test "$tk_strtod" = 1; then
  2100.     echo $ac_n "checking for Solaris 2.4 strtod bug""... $ac_c" 1>&4
  2101.     if test "$cross_compiling" = yes; then
  2102.   tk_ok=0
  2103. else
  2104. cat > conftest.$ac_ext <<EOF
  2105. #line 2106 "configure"
  2106. #include "confdefs.h"
  2107.  
  2108.     extern double strtod();
  2109.     int main()
  2110.     {
  2111.         char *string = "NaN";
  2112.         char *term;
  2113.         strtod(string, &term);
  2114.         if ((term != string) && (term[-1] == 0)) {
  2115.         exit(1);
  2116.         }
  2117.         exit(0);
  2118.     }
  2119. EOF
  2120. eval $ac_link
  2121. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2122.   tk_ok=1
  2123. else
  2124.   tk_ok=0
  2125. fi
  2126. fi
  2127. rm -fr conftest*
  2128.     if test "$tk_ok" = 1; then
  2129.     echo "$ac_t""ok" 1>&4
  2130.     else
  2131.     echo "$ac_t""buggy" 1>&4
  2132.     cat >> confdefs.h <<\EOF
  2133. #define strtod fixstrtod
  2134. EOF
  2135.  
  2136.     fi
  2137. fi
  2138.  
  2139. #--------------------------------------------------------------------
  2140. #    Read in configuration information generated by Tcl for shared
  2141. #    libraries, and arrange for it to be substituted into our
  2142. #    Makefile.
  2143. #--------------------------------------------------------------------
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152. trap '' 1 2 15
  2153. if test -w $cache_file; then
  2154. echo "updating cache $cache_file"
  2155. cat > $cache_file <<\EOF
  2156. # This file is a shell script that caches the results of configure
  2157. # tests run on this system so they can be shared between configure
  2158. # scripts and configure runs.  It is not useful on other systems.
  2159. # If it contains results you don't want to keep, you may remove or edit it.
  2160. #
  2161. # By default, configure uses ./config.cache as the cache file,
  2162. # creating it if it does not exist already.  You can give configure
  2163. # the --cache-file=FILE option to use a different cache file; that is
  2164. # what configure does when it calls configure scripts in
  2165. # subdirectories, so they share the cache.
  2166. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2167. # config.status only pays attention to the cache file if you give it the
  2168. # --recheck option to rerun configure.
  2169. #
  2170. EOF
  2171. # Ultrix sh set writes to stderr and can't be redirected directly.
  2172. (set) 2>&1 |
  2173.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  2174.   >> $cache_file
  2175. else
  2176. echo "not updating unwritable cache $cache_file"
  2177. fi
  2178.  
  2179. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  2180.  
  2181. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2182. # Let make expand exec_prefix.
  2183. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2184.  
  2185. # Any assignment to VPATH causes Sun make to only execute
  2186. # the first set of double-colon rules, so remove it if not needed.
  2187. # If there is a colon in the path, we need to keep it.
  2188. if test "x$srcdir" = x.; then
  2189.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2190. fi
  2191.  
  2192. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2193.  
  2194. # Transform confdefs.h into DEFS.
  2195. # Protect against shell expansion while executing Makefile rules.
  2196. # Protect against Makefile macro expansion.
  2197. cat > conftest.defs <<\EOF
  2198. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  2199. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2200. s%\[%\\&%g
  2201. s%\]%\\&%g
  2202. s%\$%$$%g
  2203. EOF
  2204. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2205. rm -f conftest.defs
  2206.  
  2207.  
  2208. # Without the "./", some shells look in PATH for config.status.
  2209. : ${CONFIG_STATUS=./config.status}
  2210.  
  2211. echo creating $CONFIG_STATUS
  2212. rm -f $CONFIG_STATUS
  2213. cat > $CONFIG_STATUS <<EOF
  2214. #!/bin/sh
  2215. # Generated automatically by configure.
  2216. # Run this file to recreate the current configuration.
  2217. # This directory was configured as follows,
  2218. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2219. #
  2220. # $0 $ac_configure_args
  2221. #
  2222. # Compiler output produced by configure, useful for debugging
  2223. # configure, is in ./config.log if it exists.
  2224.  
  2225. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2226. for ac_option
  2227. do
  2228.   case "\$ac_option" in
  2229.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2230.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2231.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2232.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2233.     echo "$CONFIG_STATUS generated by autoconf version 2.1"
  2234.     exit 0 ;;
  2235.   -help | --help | --hel | --he | --h)
  2236.     echo "\$ac_cs_usage"; exit 0 ;;
  2237.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2238.   esac
  2239. done
  2240.  
  2241. ac_given_srcdir=$srcdir
  2242. ac_given_INSTALL="$INSTALL"
  2243.  
  2244. trap 'rm -f Makefile; exit 1' 1 2 15
  2245.  
  2246. # Protect against being on the right side of a sed subst in config.status. 
  2247. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  2248.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  2249. $ac_vpsub
  2250. $extrasub
  2251. s%@CFLAGS@%$CFLAGS%g
  2252. s%@CPPFLAGS@%$CPPFLAGS%g
  2253. s%@CXXFLAGS@%$CXXFLAGS%g
  2254. s%@DEFS@%$DEFS%g
  2255. s%@LDFLAGS@%$LDFLAGS%g
  2256. s%@LIBS@%$LIBS%g
  2257. s%@exec_prefix@%$exec_prefix%g
  2258. s%@prefix@%$prefix%g
  2259. s%@program_transform_name@%$program_transform_name%g
  2260. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2261. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2262. s%@RANLIB@%$RANLIB%g
  2263. s%@WISH@%$WISH%g
  2264. s%@CPP@%$CPP%g
  2265. s%@XINCLUDES@%$XINCLUDES%g
  2266. s%@XLIBSW@%$XLIBSW%g
  2267. s%@MATH_LIBS@%$MATH_LIBS%g
  2268. s%@CC@%$CC%g
  2269. s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
  2270. s%@SHLIB_LD@%$SHLIB_LD%g
  2271. s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
  2272. s%@DL_LIBS@%$DL_LIBS%g
  2273. s%@LD_FLAGS@%$LD_FLAGS%g
  2274.  
  2275. CEOF
  2276. EOF
  2277. cat >> $CONFIG_STATUS <<EOF
  2278.  
  2279. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2280. EOF
  2281. cat >> $CONFIG_STATUS <<\EOF
  2282. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2283.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2284.   case "$ac_file" in
  2285.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2286.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2287.   *) ac_file_in="${ac_file}.in" ;;
  2288.   esac
  2289.  
  2290.   # Adjust relative srcdir, etc. for subdirectories.
  2291.  
  2292.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2293.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2294.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2295.     # The file is in a subdirectory.
  2296.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2297.     ac_dir_suffix="/$ac_dir"
  2298.     # A "../" for each directory in $ac_dir_suffix.
  2299.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2300.   else
  2301.     ac_dir_suffix= ac_dots=
  2302.   fi
  2303.  
  2304.   case "$ac_given_srcdir" in
  2305.   .)  srcdir=.
  2306.       if test -z "$ac_dots"; then top_srcdir=.
  2307.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2308.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2309.   *) # Relative path.
  2310.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2311.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2312.   esac
  2313.  
  2314.   case "$ac_given_INSTALL" in
  2315.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2316.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2317.   esac
  2318.   echo creating "$ac_file"
  2319.   rm -f "$ac_file"
  2320.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2321.   case "$ac_file" in
  2322.   *Makefile*) ac_comsub="1i\\
  2323. # $configure_input" ;;
  2324.   *) ac_comsub= ;;
  2325.   esac
  2326.   sed -e "$ac_comsub
  2327. s%@configure_input@%$configure_input%g
  2328. s%@srcdir@%$srcdir%g
  2329. s%@top_srcdir@%$top_srcdir%g
  2330. s%@INSTALL@%$INSTALL%g
  2331. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2332. fi; done
  2333. rm -f conftest.subs
  2334.  
  2335.  
  2336.  
  2337. exit 0
  2338. EOF
  2339. chmod +x $CONFIG_STATUS
  2340. rm -fr confdefs* $ac_clean_files
  2341. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  2342.  
  2343.